package com.gnerv.battle.boot.framework.repository;

import com.gnerv.battle.boot.framework.cache.ManageApiCryptoDTOCache;
import com.gnerv.battle.boot.framework.model.dto.ManageApiCryptoDTO;
import org.springframework.stereotype.Component;

/**
 * @author Gnerv LiGen
 */
@Component
public class ManageApiCryptoAesRepository {

    public ManageApiCryptoDTO create(){
       return ManageApiCryptoDTOCache.get();
    }

    public String selectKeyByUkId(String ukId){
        return ManageApiCryptoDTOCache.get(ukId).getKey();
    }
}
